<template>
	<view class="">
		<header-top :messageInfo="{typeFlag:true,message:type==1?'关于我们':type==2?'隐私政策':'',liner:false}"></header-top>
		<view class="mainpadding">
			<!-- <rich-text :nodes="yhxinxi.content"></rich-text> -->
			<u-parse :content="info.content"></u-parse>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				info:{},
				type:1,
			}
		},
		onLoad(options) {
			this.type = options.type;
			if(options.type == 1){
				this.getdata();
			}else if(options.type == 2){
				this.getyinsi();
			}
		},
		methods: {
			getyinsi(){
				let _this = this;
				httpRequest.request('api/index/getPlatformxy','POST',{
					id:2,
				}).then(res => {
					if(res.code == 1){
						_this.info = res.data;
					}
				})
			},
			getdata(){
				let _this = this;
				httpRequest.request('api/index/getPlatformxy','POST',{
					id:3,
				}).then(res => {
					if(res.code == 1){
						_this.info = res.data;
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>

</style>
